package com.example.yunifang.fragment;

import java.util.ArrayList;

import com.example.yunifang.R;
import com.example.yunifang.XiangQingActivity;
import com.example.yunifang.adapter.CanShuAdpater;
import com.example.yunifang.bean.XiangQingBean.Data.Goods.Attributes;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import android.widget.TextView;

public class CanShuFragment extends Fragment {

	private ListView canshu_xiangqing;
	ArrayList<Attributes> data = new ArrayList<Attributes>();

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		View view = View.inflate(getActivity(), R.layout.canshufragment, null);
		canshu_xiangqing = (ListView) view.findViewById(R.id.canshu_xiangqing);
		data.addAll(XiangQingActivity.list);
		CanShuAdpater adpater = new CanShuAdpater(data, getActivity());
		canshu_xiangqing.setAdapter(adpater);
		return view;
	}
}
